<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h5>url 表达式</h5>
<!--http://localhost:8080/order/details?orderId=1001'-->
<a th:href="@{http://localhost:8080/order/details(orderId=${orderId})}">订单详情</a><br>

<!--http://localhost:8080/order/1001/details'-->
<a th:href="@{http://localhost:8080/order/{orderId}/details(orderId=${orderId})}">订单详情</a><br>

</body>
</html>